home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 239_01 / noop.c < prev    next >
Text File  |  1987-07-29  |  512b  |  32 lines

  1.  
  2. #include <time.h>
  3. #include "ciao.h"
  4.  
  5. /*
  6. **  noop definition for #defines in debug test files
  7. */
  8.  
  9. void noop()
  10. {
  11.      ;
  12. }
  13.  
  14. void bell() { putch('\a'); }
  15.  
  16.  
  17. void sleep( tenths ) int tenths;
  18. {
  19.      time_t start, finish;
  20.      float value;
  21.  
  22.      value = (float) tenths / 10.0;    /* convert 20 tenths to 0.2 seconds */
  23.      time(&start);
  24.      do
  25.      {
  26.           time(&finish);
  27.      }
  28.      while (difftime(finish,start) < value);
  29.  
  30. }
  31.  
  32.